<?php
class LocationController extends Zend_Controller_Action
{
    public function init()
    {
        Zend_Loader::loadClass('LocationInfo');
    }
    public function getjsonAction()
    {
        $location_tab = new LocationInfo;
        Zend_Loader::loadClass("Zend_Json_Encoder");
        $this->view->locations = $location_tab->fetchAll();
    }
}